import React from 'react'
import {render} from 'react-dom'
import {BrowserRouter} from "react-router-dom";

import App from './components/app'
import './index.css'

/*
* 一旦用到了readt_router 之后,就不能直接去渲染App
* 应该使用路由对应的组件包含起来
* */
// render(<App />, document.getElementById('root'))
render(
    (
        <BrowserRouter>
            <App />
        </BrowserRouter>
    ),
    document.getElementById('root')
)


